import json
from RedisUtil import *

class Dispatch:
    def __init__(self):
        self.redis = RedisUtil()

    def run(self,data):
        print("====这里是分发====")
        objdata = json.loads(data)
        print(objdata)
        host = objdata["data"]["host"]
        print(host)
        print(objdata["data"])
       # self.redis.appendArray(host,objdata["data"],20)
       # print(self.redis.getArray(host))